Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[config-plugins] fix detecting application target #3215

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

dsokal
Copy link
Contributor

@dsokal dsokal commented Feb 11, 2021

Why

https://exponent-internal.slack.com/archives/C010FFEQF0A/p1611929974023600

There are iOS projects that have multiple BuildActionEntries defined in .xcscheme. Previously, we would take the first entry and use BlueprintName as the target name. Unfortunately, this is not correct behavior. The application target is not always the first entry but looking for it is quite simple. Its buildable name ends with .app.

How

Instead of taking the first entry, I added a .find that looks for an entry ending with .app.

Test Plan

  • Tested against the project from Slack.
  • Added unit test.

After merging

Bump @expo/config-plugins in eas-cli.

Copy link
Contributor

@EvanBacon EvanBacon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks for the test

@dsokal dsokal merged commit a5e81c4 into master Feb 12, 2021
@dsokal dsokal deleted the @dsokal/fix-detecting-app-target branch February 12, 2021 10:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants